package com.samuel.bean;


import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * @date:2017/11/22
 * @time: 10:41
 * @author:zhaoyang
 * @desc:Bean的初始化和销毁
 **/
public class JSR250WayService {

    @PostConstruct
  public void init(){
      System.out.println("@JSR250-init-Method");
  }


  public JSR250WayService(){
      super();
      System.out.println("初始化构造函数JSR250WayService");
  }

  @PreDestroy
  public void destroy(){
      System.out.println("@JSR250-destroy-Method");
  }
}
